const fs = require('fs');
const path = require('path');
fs.readdir(path.resolve(__dirname,"../packages"),(err,data) => {
  fs.writeFile(path.resolve(__dirname,"allTemplates.json"),JSON.stringify(data,null,2),(err) => {
    if (err) {
      console.log(err);
      return
    }
    console.log("success");
  })
})
